package cn.wu.reggie.common;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Page<T>  {
    protected List<T> records;
    protected long total;
    protected long pageSize;
    protected long page;

    public Page(List<T> records, long total) {
        this.records = records;
        this.total = total;
    }
}